import request from '../../utils/request'
/**
 * Author: Tzk
 * Name: 书籍投放接口
 * Date: 2024/6/26
 */

// 分页查看方法
export function searchBooks(data) {
    return request({
        url: '/book-biz-service/admin/v1/book/query-app-book',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}

//新增方法
export function addBooks(data) {
    return request({
        url: '/book-biz-service/admin/v1/book/create-app-book',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}

//查询此应用书籍
export function searchBooksId() {
    return request({
        url: '/book-biz-service/admin/v1/book/query-app-book-list',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'get'
    })
}
